package com.zack.gank.gankandroid;

import android.app.Application;

import com.gank.zack.ganklibrary.NetWork;
import com.gank.zack.ganklibrary.network.utils.AppUtil;
import com.gank.zack.ganklibrary.network.utils.ResourceUtil;
import com.orhanobut.logger.LogLevel;
import com.orhanobut.logger.Logger;
import com.zack.gank.gankandroid.gankandroid.R;
import com.zack.gank.gankandroid.main.find.bean.Gank;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Android on 2017/7/11.
 */
public class MyApplication extends Application {

    public List<Gank>  comonImageUrl=new ArrayList<>();
    public static MyApplication myApplication;

    public static MyApplication getContext(){
        return myApplication;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        myApplication=this;
        NetWork netWork=new NetWork(this);

        // 配置Logger
        Logger
                .init(this.getApplicationContext().getString(R.string.app_name))
                .methodCount(2)
                .hideThreadInfo()
                .logLevel(true ? LogLevel.FULL : LogLevel.NONE)
                .methodOffset(2);
    }

    public List<Gank> getComonImageUrl() {
        return comonImageUrl;
    }

    public void setComonImageUrl(List<Gank> comonImageUrl) {
        this.comonImageUrl = comonImageUrl;
    }
}
